#ifndef __GOFGAME_COMMON_UI_INTENT_H__
#define __GOFGAME_COMMON_UI_INTENT_H__

#include <cocos2d.h>
#include "gofgame/common/Ref.h"
#include "gofgame/common/ui/Component.h"

namespace gofgame {
	namespace common {
		namespace ui {
			using namespace cocos2d;
			class Intent : public CCObject {
			public:
				Intent(bool transient = false);
				bool isTransient() const;
				virtual Ref<Component> createComponent() = 0;
			private:
				bool transient;
			};
		}
	}
}

#endif //__GOFGAME_COMMON_UI_INTENT_H__
